package  
{
	import org.flixel.*;
	import flash.utils.Timer;
	import flash.events.*;
	/**
	 * ...
	 * @author d7ggj
	 */
	public class AttackFX extends FlxText
	{
		private var deathTimer:Timer;
		public function AttackFX(X:Number, Y:Number, Width:uint, Text:String=null, EmbeddedFont:Boolean=true) 
		{
			super(X, Y, Width, Text, EmbeddedFont);
			deathTimer = new Timer(1000, 1);
			deathTimer.addEventListener(TimerEvent.TIMER_COMPLETE, runStopEvent);
			deathTimer.start();
		}
		
		public function runStopEvent(event:TimerEvent):void
		{
			kill();
		}
	}

}